from tkinter import *

root = Tk()

#холст
c=Canvas(width=500, height=500, bg="white")
c.pack()

def rect(x,y,width,heigth):
    c.create_rectangle(x,y,x+width, y+heigth, fill="Blue")

def fig(x,y,width,heigth):
    rect(x+width,y,width,heigth)
    rect(x+width,y+heigth,width,heigth)
    rect(x+2*width,y+heigth,width,heigth)
    rect(x+width,y+2*heigth,width,heigth)

width=10
heigth=10
scale=int(input())
x=int(input())
y=int(input())


if scale*width>500 or scale*width<0 or scale*heigth>500 or scale*heigth<0 or x+2*width>500 or y+3*heigth>500 or x+2*width<0 or y+3*heigth<0:
    print('ошибка')
else:
    fig(x,y,width*scale,heigth*scale)
    root.mainloop()
